<!--
   Copyright 2024 The Google Research Authors.
  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!-- You must include this JavaScript file -->
<script src="https://assets.crowd.aws/crowd-html-elements.js"></script>

<!-- For the full list of available Crowd HTML Elements and their input/output documentation,
  please refer to https://docs.aws.amazon.com/sagemaker/latest/dg/sms-ui-template-reference.html -->

  <!-- You must include crowd-form so that your task submits answers to MTurk -->

  <crowd-form>

    <p>
    <strong>
      Read the 5-sentence story below and rate each summary.<br>
    </strong>
      Fluency: How fluent is the sentence (1 = poor, 5 = Excellent). <br>
      Information: How well does the summary capture the pertinent information in the story (1 = poor, 5 = Excellent). <br>
       
    
    </p>
    <hr>
    <b>Story:</b> ${story}
    <hr>

    <p>${model_0}</p>
    
    <small>Fluency: <crowd-slider name="fluency_0" min="1" max="5" required pin editable></crowd-slider>
    Information: <crowd-slider name="quality_0" min="1" max="5" required pin editable></crowd-slider>
    </small>
    
    <hr>

    <p>${model_1}</p>
    
    <small>Fluency: <crowd-slider name="fluency_1" min="1" max="5" required pin editable></crowd-slider>
    Information: <crowd-slider name="quality_1" min="1" max="5" required pin editable></crowd-slider>
    </small>
    
    <hr>
  </crowd-form>
